package com.ias.agdis_r.util;

import android.content.Context;

public class FlnChangeUtils {

	public static String flnChangeUtils(String fln, Context context) {
		String newFln = "FLNNAME_" + fln.substring(0, 2);
		int res = getResId(newFln, "string", context);
		if (res == 0) {
			return fln;
		} else {
			return context.getString(res) + fln;
		}
	}

	private static int getResId(String name, String defType, Context context) {
		return context.getResources().getIdentifier(name, defType,
				context.getApplicationInfo().packageName);
	}

}
